package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * US_SMS实体类
 * 
 * @author 
 *
 */
public class UsSms {
	/***/
	private Object id; 
	/***/
	private java.time.Instant SendTime; 
	/***/
	private Integer EmpID; 
	/***/
	private String Message; 
	/***/
	private Integer Typee; 
	/**
	 * 实例化
	 */
	public UsSms() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public UsSms(JSONObject obj) {
		this();
		this.setId(obj.get("id"));
		if (obj.get("SendTime") instanceof java.time.Instant) {
			this.setSendTime((java.time.Instant) obj.get("SendTime"));
		}
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("Message") instanceof String) {
			this.setMessage((String) obj.get("Message"));
		}
		if (obj.get("Typee") instanceof Number) {
			this.setTypee(((Number) obj.get("Typee")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getSendTime() != null) {
			result.put("SendTime",this.getSendTime());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getMessage() != null) {
			result.put("Message",this.getMessage());
		}
		if (this.getTypee() != null) {
			result.put("Typee",this.getTypee());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Object getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Object id) {
		this.id = id;
	}
	
	/**
	 * 获取SendTime
	 * 
	 * @return
	 */
	public java.time.Instant getSendTime() {
		return SendTime;
	}

	/**
	 * 设置SendTime
	 * 
	 * @param SendTime
	 */
	public void setSendTime(java.time.Instant SendTime) {
		this.SendTime = SendTime;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取Message
	 * 
	 * @return
	 */
	public String getMessage() {
		return Message;
	}

	/**
	 * 设置Message
	 * 
	 * @param Message
	 */
	public void setMessage(String Message) {
		this.Message = Message;
	}
	
	/**
	 * 获取Typee
	 * 
	 * @return
	 */
	public Integer getTypee() {
		return Typee;
	}

	/**
	 * 设置Typee
	 * 
	 * @param Typee
	 */
	public void setTypee(Integer Typee) {
		this.Typee = Typee;
	}

	@Override
	public String toString() {
		return "UsSms [id=" + id + " , SendTime=" + SendTime + " , EmpID=" + EmpID + " , Message=" + Message + " , Typee=" + Typee + "  ]";
	
	}
	
	
}
